<template>
    <p>欢迎来到登录页</p>
    <el-button type="success" @click="goHome">去登录</el-button>
</template>
<script setup>
import { useRouter } from 'vue-router';

const router = useRouter();
function goHome() {
  router.push('/');
}
</script>